{include file='public/header' /}
<div class="pad_lr_10" >
    <form name="searchform"  method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        <input type="hidden" name="menuid" value="{$menuid}" />
                        <input type="hidden" name="type" value="{$search.type}" />
                        <input type="hidden" name="model" value="{$search.model}">
                        {if condition='$search.model neq "house_group"'}类型：
                        <select name="type">
                            <option value="0">-全部-</option>
                            {if condition='$search.model eq "house"'}
                            {volist name=':baomingType()' id='vo'}
                            {if condition="$key neq 4"}
                            <option value="{$key}" {if condition="$search.type eq $key"}selected="selected"{/if}>{$vo}</option>
                            {/if}
                            {/volist}
                            {else /}
                            <option value="1" {if condition="$search.type eq 1"}selected{/if}>预约看房</option>
                            <option value="3" {if condition="$search.type eq 3"}selected{/if}>免费电话</option>
                            {/if}
                        </select>{/if}
                        &nbsp;&nbsp;状态:
                        <select name="status">
                            <option value="">-全部-</option>
                            <option value="1" {if condition="$search.status eq '1'"}selected="selected"{/if}>已联系</option>
                            <option value="0" {if condition="$search.status eq '0'"}selected="selected"{/if}>未联系</option>
                        </select>
                        &nbsp;&nbsp; {if condition='$search.model eq "house"'}楼盘名称{else /}房源名称{/if} :
                        <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                        <input type="submit" name="search" class="btn" value="搜索" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:url('ajaxEdit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="25"><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="center" width="100">姓名</th>
                <th align="center" width="120">电话</th>
                <th width="110">类别</th>
                <th align="center">所属楼盘</th>
                <th width="120">留言时间</th>
                <th width="80">状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="val"}
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td align="center">{$val.name}</td>
                    <td align="center">{$val.phone}</td>
                    <td align="center">{:baomingType($val['type'])}{if condition='$val.type eq 5 and $val.money gt 0'}-{$val.money}元{/if}</td>
                    <td align="center">{$val.house_title}</td>
                    <td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                    <td align="center">{if condition="$val['status'] eq 1"}已联系{else /}<span style="color:#ff0000;">未联系</span>{/if}</td>
                    <td align="center">{:rights($options,$val['id'],$val['house_title'],$menuid)}</td>
                </tr>
            {/volist}
            </tbody>
        </table>

        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('delete')}" data-name="id" data-msg="确定要删除所选记录么？" value="删除" />
            <div id="pages">{$pages}</div>
        </div>
    </div>
</div>
{include file='public/footer' /}